import {
	billBaseUrl,
	receiptIndexBaseUrl
} from "@/utils/config.js"
export const receiptTypeArray = [
	{
		code: 'voucher',
		icon: receiptIndexBaseUrl + 'shouye-shoukuanshouju@3x.png',
		preview: billBaseUrl + 'dianzipingzheng-d.png',
		name: '收据凭证',
		profiles: '适用企业用户的服务、售货、报销等场景',
		id: '7'
	},
	{
		code: 'collection',
		icon: receiptIndexBaseUrl + 'shouye-shoukuanpingzheng@3x.png',
		preview: billBaseUrl + 'shoukuanshouju-d.png',
		name: '收款收据（通用）',
		profiles: '适用各类用户的通用型收款场景',
		id: '9'

	},
	{
		code: 'receipt',
		icon: receiptIndexBaseUrl + 'shouye-fuwuxiaopiao@3x.png',
		preview: billBaseUrl + 'fuwuzhangdan-d.png',
		name: '服务小票',
		profiles: '适用个人用户的常规生活服务场景',
		id: '6'
	},
	{
		code: 'refund',
		icon: receiptIndexBaseUrl + 'shouye-tuikuandan@3x.png',
		preview: billBaseUrl + 'tuikuandan-d.png',
		name: '退款单',
		profiles: '适用各类退货/退款场景',
		id: '8'
	}
]

export const allList = [
	...receiptTypeArray
]
export const previewImages = [billBaseUrl + 'dianzipingzheng-d.png', billBaseUrl +
	'shoukuanshouju-d.png', billBaseUrl + 'fuwuzhangdan-d.png', billBaseUrl + 'tuikuandan-d.png'
]

export const scrollViewPages = [{
		pageNumber: 1,
		size: 10,
		loaded: false,
		loadStatus: 'loadmore',
		freshing: false,
		triggered: false,
	}, {
		pageNumber: 1,
		size: 10,
		loaded: false,
		loadStatus: 'loadmore',
		freshing: false,
		triggered: false,
	},
	{
		pageNumber: 1,
		size: 10,
		loaded: false,
		loadStatus: 'loadmore',
		freshing: false,
		triggered: false,
	},
	{
		pageNumber: 1,
		size: 10,
		loaded: false,
		loadStatus: 'loadmore',
		freshing: false,
		triggered: false,
	},
]

export const popInfos = [{
		type: 'share',
		confirmText: '开通会员',
		cancelText: '取消',
		bottomTip: '※ 非会员只能创建三条收据，请开通会员后再尝试'
	},
	{
		type: 'renew',
		confirmText: '续费会员',
		cancelText: '取消',
		bottomTip: ''
	},
	{
		type: 'noVip',
		confirmText: '开通会员',
		cancelText: '取消',
		bottomTip: ''
	}
]